/* 全局样式 */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #add8e6;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

h1 {
    text-align: center;
    color: #4e4e4e;
    margin-bottom: 20px;
    width: 100%;
    font-size: 3em;
    margin: 0; /* 移除默认的外边距 */
    padding: 20px 0; /* 添加内边距，使标题更美观 */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2); /* 添加文字阴影效果 */
}

form {
    background-color: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    width: 350px;
    transition: transform 0.3s ease;
    margin: 20px auto; /* 调整表单的外边距，使其与标题分隔开 */
}

form:hover {
    transform: scale(1.02);
}

label {
    display: block;
    margin-bottom: 5px;
    color: #7f8c8d;
    font-weight: 600;
    font-size: 1.4em; /* 增大字体大小 */
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #bdc3c7;
    border-radius: 5px;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="password"]:focus {
    border-color: #3498db;
    outline: none;
}

input[type="submit"] {
    width: 100%;
    padding: 12px;
    background-color: #3498db;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 1.2em;
    font-weight: 600;
}

input[type="submit"]:hover {
    background-color: #2980b9;
}

button {
    padding: 12px 20px;
    background-color: #e74c3c;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 1em;
    font-weight: 600;
}

button:hover {
    background-color: #c0392b;
}

#errorMessage {
    color: #e74c3c;
    text-align: center;
    margin-top: 10px;
    font-size: 0.9em;
}

#welcomeMessage {
    text-align: center;
    color: #2c3e50;
    font-size: 1.2em;
    margin-bottom: 20px;
}